package cn.lingyangwl.agile.msg.push.model.rqrs.notice;

import cn.lingyangwl.agile.model.constants.*;
import cn.lingyangwl.agile.msg.push.core.*;
import cn.lingyangwl.framework.validation.group.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;


/**
 * 消息设置
 *
 * @author shenguangyang
 */
@Getter
@Setter
public class NoticeChannelBase {
	@NotNull(message = ValidationCons.NOT_EMPTY, groups = UpdateGroup.class)
	private Long id;

	@NotNull(message = ValidationCons.NOT_EMPTY, groups = InsertGroup.class)
	@ApiModelProperty(value = "通知id, msg_notice的主键")
	private Long noticeId;

	@NotEmpty(message = ValidationCons.NOT_EMPTY, groups = InsertGroup.class)
	@ApiModelProperty(value = "渠道类型")
	private String channelType;

	@ApiModelProperty(value = "设置")
	private MsgSettings settings;

	@NotEmpty(message = ValidationCons.NOT_EMPTY, groups = InsertGroup.class)
	@ApiModelProperty(value = "状态")
	private String status;

	@ApiModelProperty(value = "备注")
	private String remark;
}
